<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>爱心字符画 - 洪思淇</title>
    <style>
        body {
            background-color: #1a1a1a;
            color: #ff0000;
            font-family: 'Courier New', monospace;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            margin: 0;
            padding: 20px;
            box-sizing: border-box;
        }
        
        #heart-container {
            text-align: center;
            white-space: pre;
            font-size: 12px;
            line-height: 1;
            margin-bottom: 30px;
        }
        
        .message {
            color: #ffffff;
            font-size: 18px;
            text-align: center;
            margin-top: 20px;
        }
        
        .name {
            color: #ff69b4;
            font-size: 24px;
            font-weight: bold;
            margin-bottom: 10px;
        }
        
        .blessing {
            color: #ffd700;
            font-size: 20px;
        }
    </style>
</head>
<body>
    <div id="heart-container"></div>
    <div class="message">
        <div class="name">洪思淇</div>
        <div class="blessing">永远开心快乐！</div>
    </div>

    <script>
        function drawHeart() {
            let heart = '';
            
            for (let y = 1.5; y > -1.5; y -= 0.1) {
                for (let x = -1.5; x < 1.5; x += 0.05) {
                    const a = x * x + y * y - 1;
                    heart += a * a * a - x * x * y * y * y <= 0.0 ? '*' : ' ';
                }
                heart += '\n';
            }
            
            document.getElementById('heart-container').textContent = heart;
        }
        
        // 页面加载完成后立即绘制爱心
        document.addEventListener('DOMContentLoaded', drawHeart);
    </script>
</body>
</html>
